package sjtu.ist.warehouse4ws.service.cust;

import java.util.List;

import sjtu.ist.warehouse4ws.dao.cust.CustPermissionresourcesDaoHibernate;
import sjtu.ist.warehouse4ws.model.CustPermissionresources;

public class CustPermissionresourcesServiceImpl implements CustPermissionresourcesService{
	
	private CustPermissionresourcesDaoHibernate custPermissionresourcesDao;
	
	public void setCustPermissionresourcesDao(
			CustPermissionresourcesDaoHibernate permissionresourcesDao) {
		this.custPermissionresourcesDao = permissionresourcesDao;
	}


	@Override
	public boolean addCustPermissionresources(
			CustPermissionresources permissionresources) {
		// TODO Auto-generated method stub
		
		custPermissionresourcesDao.save(permissionresources);
		return false;
	}


	@Override
	public List<String> getResourcesByPermissionid(String permissionid) {
		// TODO Auto-generated method stub
		return custPermissionresourcesDao.getResourcesByPermissionid(permissionid);
	}

}
